/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package is202.hrms.web;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author MrVegard
 */
public class DateBean {

    public DateBean() {
        System.out.println(timeOut());
    }

    public static void main(String[] args) {
        new DateBean();
    }
    
    public String timeOut(){
        Date date = new Date(2015, 04, 23);
        Date date1 = new Date(2014, 04, 23);
        
        if(date.after(date1)){
        //kan fortsatt ta modul
            
            return "Kan fortsatt ta den";
        }else{
            return "tiden har gått ut";
        }
    }
}
